package com.tdrc.article.beans;


/**
 * @author dpf
 * @version 1.0
 * @date 2020-6-8 16:50
 * @instruction ...
 */
//@Document(indexName = "article")
public class Article {
    //@Id
    private Integer id;
    private Integer userId;
    private String title;
    private String body;
    private String createTime;

    public Article(){

    }

    public Article(Integer id, Integer userId, String title, String body,String createTime ) {
        this.id = id;
        this.userId = userId;
        this.title = title;
        this.body = body;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
